﻿<ResourceDictionary 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:v="clr-namespace:ShredTheLog.Views;assembly=ShredTheLog.Views"
    xmlns:vm="clr-namespace:ShredTheLog.ViewModels;assembly=ShredTheLog.ViewModels"
    xmlns:cnv="clr-namespace:ShredTheLog.Converters;assembly=ShredTheLog.Converters"
    xmlns:generated="clr-namespace:ShredTheLog.Api;assembly=ShredTheLog.Generated"
    xmlns:c="clr-namespace:ShredTheLog.Controls;assembly=ShredTheLog.Controls"
    xmlns:tk="clr-namespace:Microsoft.Windows.Controls;assembly=WPFToolkit"
    xmlns:dgp="clr-namespace:Microsoft.Windows.Controls.Primitives;assembly=WPFToolkit"
    xmlns:s="clr-namespace:System;assembly=mscorlib"
    >

    <ResourceDictionary.MergedDictionaries>
        <ResourceDictionary Source="OdigoMisc2.xaml"/>
    </ResourceDictionary.MergedDictionaries>

    <DataTemplate DataType="{x:Type generated:Language}">
        <TextBlock Text="{Binding Converter={x:Static cnv:LanguagesConverter.Default}}"/>
    </DataTemplate>

    <DataTemplate DataType="{x:Type generated:Country}">
        <TextBlock Text="{Binding Converter={x:Static cnv:CountryConverter.Default}}"/>
    </DataTemplate>

    <DataTemplate DataType="{x:Type generated:Gender}">
        <TextBlock FontSize="18" FontFamily="Webdings">
            <TextBlock.Style>
                <Style TargetType="{x:Type TextBlock}">
                    <Style.Triggers>
                        <DataTrigger Binding="{Binding}" Value="Male">
                            <Setter Property="Text" Value="&#x80;"/>
                        </DataTrigger>
                        <DataTrigger Binding="{Binding}" Value="Female">
                            <Setter Property="Text" Value="&#x81;"/>
                        </DataTrigger>
                    </Style.Triggers>
                </Style>
            </TextBlock.Style>
        </TextBlock>
    </DataTemplate>

    <Style TargetType="{x:Type FlowDocument}">
        <Setter Property="FontFamily" Value="Segoe UI"/>
        <Setter Property="FontSize" Value="12"/>
    </Style>

    <Style TargetType="{x:Type tk:DataGrid}">
        <Setter Property="IsReadOnly" Value="True"/>
        <Setter Property="IsSynchronizedWithCurrentItem" Value="True"/>
        <Setter Property="AutoGenerateColumns" Value="False"/>
        <Setter Property="SelectionMode" Value="Single"/>
        <Setter Property="RowHeaderStyle" Value="{x:Null}"/>
        <Setter Property="RowHeaderWidth" Value="0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type tk:DataGrid}">
                    <Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}">
                        <ScrollViewer Focusable="false" Name="DG_ScrollViewer">
                            <ScrollViewer.Template>
                                <ControlTemplate TargetType="{x:Type ScrollViewer}">
                                    <Grid>
                                        <Grid.RowDefinitions>
                                            <RowDefinition Height="Auto"/>
                                            <RowDefinition Height="*"/>
                                            <RowDefinition Height="Auto"/>
                                        </Grid.RowDefinitions>

                                        <Grid.ColumnDefinitions>
                                            <ColumnDefinition Width="Auto"/>
                                            <ColumnDefinition Width="*"/>
                                            <ColumnDefinition Width="Auto"/>
                                        </Grid.ColumnDefinitions>

                                        <!--Left Column Header Corner -->
                                        <!--<Button Command="{x:Static dg:DataGrid.SelectAllCommand}" Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type tk:DataGrid}}, Path=CellsPanelHorizontalOffset}" Template="{StaticResource SelectAllButtonTemplate}" Focusable="false" Visibility="{Binding RelativeSource={RelativeSource AncestorType={x:Type tk:DataGrid}}, Path=HeadersVisibility, Converter={x:Static tk:DataGrid.HeadersVisibilityConverter}, ConverterParameter={x:Static tk:DataGridHeadersVisibility.All}}" />-->

                                        <!--Column Headers-->
                                        <dgp:DataGridColumnHeadersPresenter Grid.Column="1" Name="PART_ColumnHeadersPresenter" Visibility="{Binding RelativeSource={RelativeSource AncestorType={x:Type tk:DataGrid}}, Path=HeadersVisibility, Converter={x:Static tk:DataGrid.HeadersVisibilityConverter}, ConverterParameter={x:Static tk:DataGridHeadersVisibility.Column}}"/>

                                        <!--DataGrid content-->
                                        <ScrollContentPresenter x:Name="PART_ScrollContentPresenter" Grid.Row="1" Grid.ColumnSpan="2" CanContentScroll="{TemplateBinding CanContentScroll}" />

                                        <ScrollBar Grid.Row="1" Grid.Column="2" Name="PART_VerticalScrollBar" Orientation="Vertical" Maximum="{TemplateBinding ScrollableHeight}" ViewportSize="{TemplateBinding ViewportHeight}" Value="{Binding Path=VerticalOffset, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}" Visibility="{TemplateBinding ComputedVerticalScrollBarVisibility}"/>

                                        <Grid Grid.Row="2" Grid.Column="1">
                                            <Grid.ColumnDefinitions>
                                                <ColumnDefinition Width="{Binding RelativeSource={RelativeSource AncestorType={x:Type tk:DataGrid}}, Path=NonFrozenColumnsViewportHorizontalOffset}"/>
                                                <ColumnDefinition Width="*"/>
                                            </Grid.ColumnDefinitions>
                                            <ScrollBar Grid.Column="1" Name="PART_HorizontalScrollBar" Orientation="Horizontal" Maximum="{TemplateBinding ScrollableWidth}" ViewportSize="{TemplateBinding ViewportWidth}" Value="{Binding Path=HorizontalOffset, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}" Visibility="{TemplateBinding ComputedHorizontalScrollBarVisibility}"/>
                                        </Grid>
                                    </Grid>
                                </ControlTemplate>
                            </ScrollViewer.Template>
                            <ItemsPresenter/>
                        </ScrollViewer>
                    </Border>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
        <Setter Property="c:Extensions.IsCustomSortingEnabled" Value="True"/>
    </Style>

    <Style x:Key="TextBoxStyle" TargetType="{x:Type Control}">
        <Setter Property="KeyboardNavigation.TabNavigation" Value="None"/>
        <Setter Property="AllowDrop" Value="true"/>
        <Setter Property="Foreground" Value="#0B333C"/>
        <Setter Property="Background" Value="White"/>
        <Setter Property="HorizontalContentAlignment" Value="Stretch"/>
        <Setter Property="VerticalContentAlignment" Value="Stretch"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Control}">
                    <c:MultiBorder Background="{TemplateBinding Background}" BorderThickness="2">
                        <c:MultiBorder.LeftBorderBrush>
                            <LinearGradientBrush StartPoint="0, 0.5" EndPoint="1, 0.5">
                                <GradientStop Offset="0" Color="#7D7D7D"/>
                                <GradientStop Offset="1" Color="#030304"/>
                            </LinearGradientBrush>
                        </c:MultiBorder.LeftBorderBrush>
                        <c:MultiBorder.TopBorderBrush>
                            <LinearGradientBrush StartPoint="0.5, 0" EndPoint="0.5, 1">
                                <GradientStop Offset="0" Color="#7D7D7D"/>
                                <GradientStop Offset="1" Color="#030304"/>
                            </LinearGradientBrush>
                        </c:MultiBorder.TopBorderBrush>
                        <c:MultiBorder.RightBorderBrush>
                            <LinearGradientBrush StartPoint="1, 0.5" EndPoint="0, 0.5">
                                <GradientStop Offset="0" Color="White"/>
                                <GradientStop Offset="1" Color="#DBDBDB"/>
                            </LinearGradientBrush>
                        </c:MultiBorder.RightBorderBrush>
                        <c:MultiBorder.BottomBorderBrush>
                            <LinearGradientBrush StartPoint="0.5, 1" EndPoint="0.5, 0">
                                <GradientStop Offset="0" Color="White"/>
                                <GradientStop Offset="1" Color="#DBDBDB"/>
                            </LinearGradientBrush>
                        </c:MultiBorder.BottomBorderBrush>

                        <ScrollViewer Margin="0" x:Name="PART_ContentHost" Padding="{TemplateBinding Padding}"/>
                    </c:MultiBorder>
                </ControlTemplate>
            </Setter.Value>
        </Setter>

        <Style.Triggers>
            <Trigger Property="IsEnabled" Value="false">
                <Setter Property="Foreground" Value="Gray"/>
                <Setter Property="Background" Value="#F0F0F0"/>
            </Trigger>
        </Style.Triggers>
    </Style>

    <Style TargetType="{x:Type TextBox}" BasedOn="{StaticResource TextBoxStyle}"/>
    <Style TargetType="{x:Type PasswordBox}" BasedOn="{StaticResource TextBoxStyle}"/>

    <Style TargetType="{x:Type CheckBox}">
        <Setter Property="Foreground" Value="#030304"/>
        <Setter Property="HorizontalContentAlignment" Value="Left"/>
        <Setter Property="VerticalContentAlignment" Value="Top"/>
        <Setter Property="Padding" Value="4,1,0,0"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type CheckBox}">
                    <Grid>
                        <BulletDecorator Background="Transparent">
                            <BulletDecorator.Bullet>
                                <c:MultiBorder Background="White" BorderThickness="2">
                                    <c:MultiBorder.LeftBorderBrush>
                                        <LinearGradientBrush StartPoint="0, 0.5" EndPoint="1, 0.5">
                                            <GradientStop Offset="0" Color="#7D7D7D"/>
                                            <GradientStop Offset="1" Color="#030304"/>
                                        </LinearGradientBrush>
                                    </c:MultiBorder.LeftBorderBrush>
                                    <c:MultiBorder.TopBorderBrush>
                                        <LinearGradientBrush StartPoint="0.5, 0" EndPoint="0.5, 1">
                                            <GradientStop Offset="0" Color="#7D7D7D"/>
                                            <GradientStop Offset="1" Color="#030304"/>
                                        </LinearGradientBrush>
                                    </c:MultiBorder.TopBorderBrush>
                                    <c:MultiBorder.RightBorderBrush>
                                        <LinearGradientBrush StartPoint="1, 0.5" EndPoint="0, 0.5">
                                            <GradientStop Offset="0" Color="White"/>
                                            <GradientStop Offset="1" Color="#DBDBDB"/>
                                        </LinearGradientBrush>
                                    </c:MultiBorder.RightBorderBrush>
                                    <c:MultiBorder.BottomBorderBrush>
                                        <LinearGradientBrush StartPoint="0.5, 1" EndPoint="0.5, 0">
                                            <GradientStop Offset="0" Color="White"/>
                                            <GradientStop Offset="1" Color="#DBDBDB"/>
                                        </LinearGradientBrush>
                                    </c:MultiBorder.BottomBorderBrush>

                                    <Path x:Name="checkIcon" Width="7" Height="7" Fill="{TemplateBinding Foreground}" Stretch="Fill" Opacity="1" Visibility="Hidden" Data="M103.78572,598.96112 L105.09846,597.5661 L107.00806,600.16229 C107.00806,600.16229 109.91004,592.74463 109.91004,592.74463 C109.91004,592.74463 111.74678,593.79761 111.74678,593.79761 C111.74678,593.79761 107.88566,602.75848 107.88566,602.75848 L106.60118,602.75848 z" Margin="1"/>
                                </c:MultiBorder>
                            </BulletDecorator.Bullet>
                            <ContentPresenter HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" RecognizesAccessKey="True"/>
                        </BulletDecorator>

                        <Rectangle x:Name="DisabledVisualElement" Fill="White" IsHitTestVisible="False" Opacity="0.5" Visibility="Collapsed"/>
                    </Grid>

                    <ControlTemplate.Triggers>
                        <Trigger Property="IsChecked" Value="True">
                            <Setter TargetName="checkIcon" Property="Visibility" Value="Visible"/>
                        </Trigger>

                        <Trigger Property="IsThreeState" Value="True">
                            <Setter TargetName="checkIcon" Property="Opacity" Value="0.5"/>
                        </Trigger>

                        <Trigger Property="IsMouseOver" Value="true">
                        </Trigger>

                        <Trigger Property="IsPressed" Value="true">
                        </Trigger>

                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Visibility" TargetName="DisabledVisualElement" Value="Visible"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type ComboBox}">
        <Setter Property="Margin" Value="2"/>
        <Setter Property="Foreground" Value="#030304"/>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type ComboBox}">
                    <ControlTemplate.Resources>
                        <ControlTemplate x:Key="ComboBoxToggleButton" TargetType="{x:Type ToggleButton}">
                            <c:MultiBorder x:Name="border" BorderThickness="1" LeftBorderBrush="White" TopBorderBrush="White" RightBorderBrush="#475673" BottomBorderBrush="#475673" Background="#BAD0E4">
                                <Path x:Name="btnArrow" Margin="0,0,7,0" Width="6" Data="F1 M 301.14,-189.041L 311.57,-189.041L 306.355,-182.942L 301.14,-189.041 Z " HorizontalAlignment="Right" Stretch="Uniform" Fill="{TemplateBinding Foreground}"/>
                            </c:MultiBorder>
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsMouseOver" Value="true">
                                </Trigger>

                                <Trigger Property="IsChecked" Value="true">
                                    <Setter TargetName="border" Property="LeftBorderBrush" Value="#475673"/>
                                    <Setter TargetName="border" Property="TopBorderBrush" Value="#475673"/>
                                    <Setter TargetName="border" Property="RightBorderBrush" Value="White"/>
                                    <Setter TargetName="border" Property="BottomBorderBrush" Value="White"/>
                                    <Setter TargetName="btnArrow" Property="RenderTransform">
                                        <Setter.Value>
                                            <TranslateTransform X="1" Y="1"/>
                                        </Setter.Value>
                                    </Setter>
                                </Trigger>

                                <Trigger Property="IsPressed" Value="True">
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </ControlTemplate.Resources>

                    <Grid>
                        <ToggleButton Template="{StaticResource ComboBoxToggleButton}" x:Name="ToggleButton" Focusable="false" IsChecked="{Binding Path=IsDropDownOpen, Mode=TwoWay, RelativeSource={RelativeSource TemplatedParent}}" ClickMode="Press"/>
                        <ContentPresenter HorizontalAlignment="Left" Margin="6,3,23,3" x:Name="ContentSite" VerticalAlignment="Center" Content="{TemplateBinding SelectionBoxItem}" ContentTemplate="{TemplateBinding SelectionBoxItemTemplate}" ContentTemplateSelector="{TemplateBinding ItemTemplateSelector}" IsHitTestVisible="False"/>
                        <TextBox Visibility="Hidden" HorizontalAlignment="Stretch" Margin="3,0,23,0" x:Name="PART_EditableTextBox" VerticalAlignment="Center" Background="Transparent" IsReadOnly="{TemplateBinding IsReadOnly}">
                            <TextBox.Template>
                                <ControlTemplate TargetType="{x:Type TextBox}">
                                    <ScrollViewer Margin="0" x:Name="PART_ContentHost" Padding="{TemplateBinding Padding}"/>
                                </ControlTemplate>
                            </TextBox.Template>
                        </TextBox>
                        <Popup IsOpen="{TemplateBinding IsDropDownOpen}" Placement="Bottom" x:Name="Popup" Focusable="False" PopupAnimation="Slide" AllowsTransparency="True">
                            <Grid MaxHeight="{TemplateBinding MaxDropDownHeight}" MinWidth="{TemplateBinding ActualWidth}" x:Name="DropDown">
                                <Border x:Name="DropDownBorder" Background="White" BorderBrush="#BBBBBB" BorderThickness="2">
                                    <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" CanContentScroll="True">
                                        <StackPanel IsItemsHost="True" KeyboardNavigation.DirectionalNavigation="Contained"/>
                                    </ScrollViewer>
                                </Border>
                            </Grid>
                        </Popup>
                        <Rectangle x:Name="DisabledVisualElement" Fill="White" IsHitTestVisible="False" Opacity="0.5" Visibility="Collapsed"/>
                    </Grid>
                    
                    <ControlTemplate.Triggers>
                        <Trigger Property="IsFocused" Value="True">
                        </Trigger>

                        <Trigger Property="HasItems" Value="false">
                            <Setter Property="MinHeight" Value="95" TargetName="DropDownBorder"/>
                        </Trigger>

                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Visibility" TargetName="DisabledVisualElement" Value="Visible"/>
                        </Trigger>

                        <Trigger Property="IsGrouping" Value="true">
                            <Setter Property="ScrollViewer.CanContentScroll" Value="false"/>
                        </Trigger>

                        <Trigger Property="IsEditable" Value="true">
                            <Setter Property="IsTabStop" Value="false"/>
                            <Setter Property="Visibility" Value="Visible" TargetName="PART_EditableTextBox"/>
                            <Setter Property="Visibility" Value="Hidden" TargetName="ContentSite"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>

    <Style TargetType="{x:Type Button}">
        <Setter Property="Margin" Value="2"/>
        <Setter Property="Foreground" Value="White"/>
        <Setter Property="Padding" Value="0, -5, 0, -5"/>
        <Setter Property="HorizontalContentAlignment" Value="Center" />
        <Setter Property="VerticalContentAlignment" Value="Center" />
        <Setter Property="FocusVisualStyle">
            <Setter.Value>
                <Style>
                    <Setter Property="Control.Template">
                        <Setter.Value>
                            <ControlTemplate>
                                <c:MultiBorder Margin="0, 0, 1, 1" BorderThickness="2" Opacity="0.8">
                                    <c:MultiBorder.LeftBorderBrush>
                                        <LinearGradientBrush StartPoint="0, 0.5" EndPoint="1, 0.5">
                                            <GradientStop Offset="0" Color="#B5972D"/>
                                            <GradientStop Offset="1" Color="#80B5972D"/>
                                        </LinearGradientBrush>
                                    </c:MultiBorder.LeftBorderBrush>
                                    <c:MultiBorder.TopBorderBrush>
                                        <LinearGradientBrush StartPoint="0.5, 0" EndPoint="0.5, 1">
                                            <GradientStop Offset="0" Color="#B5972D"/>
                                            <GradientStop Offset="1" Color="#80B5972D"/>
                                        </LinearGradientBrush>
                                    </c:MultiBorder.TopBorderBrush>
                                    <c:MultiBorder.RightBorderBrush>
                                        <LinearGradientBrush StartPoint="1, 0.5" EndPoint="0, 0.5">
                                            <GradientStop Offset="0" Color="#B5972D"/>
                                            <GradientStop Offset="1" Color="#80B5972D"/>
                                        </LinearGradientBrush>
                                    </c:MultiBorder.RightBorderBrush>
                                    <c:MultiBorder.BottomBorderBrush>
                                        <LinearGradientBrush StartPoint="0.5, 1" EndPoint="0.5, 0">
                                            <GradientStop Offset="0" Color="#B5972D"/>
                                            <GradientStop Offset="1" Color="#80B5972D"/>
                                        </LinearGradientBrush>
                                    </c:MultiBorder.BottomBorderBrush>
                                </c:MultiBorder>
                            </ControlTemplate>
                        </Setter.Value>
                    </Setter>
                </Style>
            </Setter.Value>
        </Setter>
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type Button}">
                    <Grid x:Name="Grid">
                        <c:MultiBorder x:Name="border" BorderThickness="8, 8, 10, 9" Background="#526589">
                            <c:MultiBorder.LeftBorderBrush>
                                <LinearGradientBrush StartPoint="0, 0.5" EndPoint="1, 0.5">
                                    <GradientStop Offset="0" Color="#7890AF"/>
                                    <GradientStop Offset="0.125" Color="#5F7B95"/>
                                    <GradientStop Offset="0.25" Color="#4D667F"/>
                                    <GradientStop Offset="0.375" Color="#475472"/>
                                    <GradientStop Offset="0.5" Color="#475472"/>
                                    <GradientStop Offset="0.625" Color="#495B80"/>
                                    <GradientStop Offset="0.75" Color="#4C5D7E"/>
                                    <GradientStop Offset="0.875" Color="#4D667F"/>
                                </LinearGradientBrush>
                            </c:MultiBorder.LeftBorderBrush>
                            <c:MultiBorder.TopBorderBrush>
                                <LinearGradientBrush StartPoint="0.5, 0" EndPoint="0.5, 1">
                                    <GradientStop Offset="0" Color="#6A849F"/>
                                    <GradientStop Offset="0.125" Color="#5F7B95"/>
                                    <GradientStop Offset="0.25" Color="#4D667F"/>
                                    <GradientStop Offset="0.375" Color="#435172"/>
                                    <GradientStop Offset="0.5" Color="#475472"/>
                                    <GradientStop Offset="0.625" Color="#495B80"/>
                                    <GradientStop Offset="0.75" Color="#4C5D7E"/>
                                    <GradientStop Offset="0.875" Color="#4D667F"/>
                                </LinearGradientBrush>
                            </c:MultiBorder.TopBorderBrush>
                            <c:MultiBorder.RightBorderBrush>
                                <LinearGradientBrush StartPoint="1, 0.5" EndPoint="0, 0.5">
                                    <GradientStop Offset="0" Color="#859CBF"/>
                                    <GradientStop Offset="0.1" Color="#5F7B95"/>
                                    <GradientStop Offset="0.2" Color="#303E4F"/>
                                    <GradientStop Offset="0.3" Color="#3B485D"/>
                                    <GradientStop Offset="0.4" Color="#404C64"/>
                                    <GradientStop Offset="0.5" Color="#435172"/>
                                    <GradientStop Offset="0.6" Color="#475472"/>
                                    <GradientStop Offset="0.7" Color="#495B80"/>
                                    <GradientStop Offset="0.8" Color="#4C5D7E"/>
                                    <GradientStop Offset="0.9" Color="#4D667F"/>
                                </LinearGradientBrush>
                            </c:MultiBorder.RightBorderBrush>
                            <c:MultiBorder.BottomBorderBrush>
                                <LinearGradientBrush StartPoint="0.5, 1" EndPoint="0.5, 0">
                                    <GradientStop Offset="0" Color="#859CBF"/>
                                    <GradientStop Offset="0.111" Color="#6A849F"/>
                                    <GradientStop Offset="0.222" Color="#324156"/>
                                    <GradientStop Offset="0.333" Color="#3F475D"/>
                                    <GradientStop Offset="0.444" Color="#435172"/>
                                    <GradientStop Offset="0.556" Color="#475472"/>
                                    <GradientStop Offset="0.667" Color="#495B80"/>
                                    <GradientStop Offset="0.778" Color="#4C5D7E"/>
                                    <GradientStop Offset="0.889" Color="#4D667F"/>
                                </LinearGradientBrush>
                            </c:MultiBorder.BottomBorderBrush>
                            
                            <ContentPresenter x:Name="contentPresenter" Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}"/>
                        </c:MultiBorder>
                    </Grid>

                    <ControlTemplate.Triggers>
                        <Trigger Property="IsDefault" Value="True">
                        </Trigger>

                        <Trigger Property="IsKeyboardFocused" Value="true">
                        </Trigger>

                        <Trigger Property="IsPressed" Value="true">
                            <Setter TargetName="border" Property="RenderTransform">
                                <Setter.Value>
                                    <TranslateTransform X="1" Y="1"/>
                                </Setter.Value>
                            </Setter>
                        </Trigger>

                        <Trigger Property="IsEnabled" Value="false">
                            <Setter Property="Foreground" Value="#414042"/>
                        </Trigger>
                    </ControlTemplate.Triggers>
                </ControlTemplate>
            </Setter.Value>
        </Setter>
    </Style>
</ResourceDictionary>